/*
*用字符's'作为默认实参重写函数make_plural。利用这个函数输出单词"success"和"failure"的单数和复数形式
*/
#include <iostream>
#include <string>
using namespace std;

string make_plural(string ,char cVal = 's');

int main()
{
	string strVal1 = "success";
	string strVal1_Temp = strVal1 + "e";
	string strVal2 = "failure";
	cout << strVal1 << "的单数形式为：" << strVal1 << ",复数形式为：" << make_plural(strVal1_Temp) << endl;
	cout << strVal2 << "的单数形式为：" << strVal2 << ",复数形式为：" << make_plural(strVal2) << endl;
	
	system("pause");
	return 0;
}

string make_plural(string strVal,char cVal )
{
	return strVal + cVal;
}